/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.finance.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 串码对比Entity
 * @author jyangye
 * @version 2018-01-08
 */
public class ViEmpToolImei extends DataEntity<ViEmpToolImei> {
	
	private static final long serialVersionUID = 1L;
	private String imei;		// 串码明显
	private String isInSys;		// 是否在系统
	private String status;		// 串号状态
	private String goodsType;		// 商品类别
	private String goodsColor;		// 商品颜色
	private String dealer;		// 经销商
	private Date ecRegTime;		// 电子保卡注册时间
	private Date rukuTime;		// 入库时间
	private Date fahuoTime;		// 发货时间
	private Date lastUpdTime;		// 最近操作时间
    private String goodsName; // 商品名称

    private String finName;
    private String finCode;

    private String dealerId;
	
	public ViEmpToolImei() {
		super();
	}

	public ViEmpToolImei(String id){
		super(id);
	}

	@Length(min=1, max=32, message="串码长度必须介于 1 和 32 之间")
	@ExcelField(title="串码", align=2, sort=20)
	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}
	
	@Length(min=1, max=1, message="是否在系统长度必须介于 1 和 1 之间")
	@ExcelField(title="是否在系统", align=2, sort=30, dictType = "yes_no")
	public String getIsInSys() {
		return isInSys;
	}

	public void setIsInSys(String isInSys) {
		this.isInSys = isInSys;
	}
	
	@Length(min=0, max=32, message="串号状态长度必须介于 0 和 32 之间")
	@ExcelField(title="串号状态", align=2, sort=40)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=32, message="商品类别长度必须介于 0 和 32 之间")
	@ExcelField(title="商品类别", align=2, sort=50, dictType = "wares_type")
	public String getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}
	
	@Length(min=0, max=32, message="商品颜色长度必须介于 0 和 32 之间")
	@ExcelField(title="商品颜色", align=2, sort=60)
	public String getGoodsColor() {
		return goodsColor;
	}

	public void setGoodsColor(String goodsColor) {
		this.goodsColor = goodsColor;
	}

    @Length(min=0, max=32, message="商品名称长度必须介于 0 和 32 之间")
    @ExcelField(title="商品名称", align=2, sort=65)
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }


    @ExcelField(title = "商品名称（财务）", align = 2, sort = 66)
    public String getFinName() {
        return finName;
    }

    public void setFinName(String finName) {
        this.finName = finName;
    }

    @ExcelField(title = "存货编号", align = 2, sort = 69)
    public String getFinCode() {
        return finCode;
    }

    public void setFinCode(String finCode) {
        this.finCode = finCode;
    }

    @Length(min=0, max=32, message="经销商长度必须介于 0 和 32 之间")
	@ExcelField(title="经销商", align=2, sort=70)
	public String getDealer() {
		return dealer;
	}

	public void setDealer(String dealer) {
		this.dealer = dealer;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="电子保卡注册时间", align=2, sort=80)
	public Date getEcRegTime() {
		return ecRegTime;
	}

	public void setEcRegTime(Date ecRegTime) {
		this.ecRegTime = ecRegTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="入库时间", align=2, sort=90)
	public Date getRukuTime() {
		return rukuTime;
	}

	public void setRukuTime(Date rukuTime) {
		this.rukuTime = rukuTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="发货时间", align=2, sort=100)
	public Date getFahuoTime() {
		return fahuoTime;
	}

	public void setFahuoTime(Date fahuoTime) {
		this.fahuoTime = fahuoTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="最近操作时间", align=2, sort=110)
	public Date getLastUpdTime() {
		return lastUpdTime;
	}

	public void setLastUpdTime(Date lastUpdTime) {
		this.lastUpdTime = lastUpdTime;
	}


    public String getDealerId() {
        return dealerId;
    }

    public void setDealerId(String dealerId) {
        this.dealerId = dealerId;
    }
}
